]> dgit.raspbian.org Git - gnome-shell.git/commit
systemActions: Don't log error when cancelled
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Oct 2025 22:57:26 +0000 (00:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
commit8edf43279fba5375d6e7ca45e06c4d85370b60df
tree3b344d097b693a3d3be8fb8ce74fded472a61cea
parent6c47715701cac474c1cbf495e3dda13da1201121
systemActions: Don't log error when cancelled

If the logout/reboot/shutdown actions are available, we expect them
to succeed. Unfortunately that changed in the light of systemd
inhibitors (that we don't know about in the shell, and that prevent
those actions now).

While it would be good to fix the underlying issue, we can at least
improve the error reporting in that case and not log the error when
the operation was cancelled: We don't know the underlying reason,
unlike gnome-session which should have logged a more helpful message.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8749
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3927>
(cherry picked from commit d3f3f4e80d338133a2083dd5c267ed456b86303d)
js/misc/systemActions.js